package com.hhsjdesign.dynamicui.core.widgetdata

import com.hhsjdesign.dynamicui.annoprocess.ADynamicUI
import com.hhsjdesign.dynamicui.annoprocess.AWidgetData
import com.hhsjdesign.dynamicui.core.property.widget.RelativeLayoutProperty
import com.hhsjdesign.dynamicui.core.property.widget.ISpecPropertyTransformer
import org.json.JSONObject


/**
 * FrameLayoutProperty
 */
@ADynamicUI
@AWidgetData(WidgetTypeConst.LAYOUT_RELATIVE)
class RelativeLayoutWidgetData(jo: JSONObject) : WidgetData(jo),
    ISpecPropertyTransformer<RelativeLayoutProperty> {

    override fun transformWidgetSpecProperty(): RelativeLayoutProperty {
        return specProperty as RelativeLayoutProperty
    }

    companion object {
        @JvmStatic
        fun parseData(jo: JSONObject): RelativeLayoutWidgetData {
            TODO("Not yet implemented")
        }
    }

}